﻿using NetFlux;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetFluxServer
{
    class Program
    {
        static void Main(string[] args)
        {
            string destination = NetFluxServer.Properties.Settings.Default.DestinationHost;
            int localPort = NetFluxServer.Properties.Settings.Default.LocalPort;
            int destinationPort = NetFluxServer.Properties.Settings.Default.DestinationPort;


            Console.WriteLine("Hosting on {0}:{1}", "<all>", localPort);
            Console.WriteLine("Forwarding to {0}:{1}", destination, destinationPort);
            ConnectionForwarder f = new ConnectionForwarder(destination,destinationPort,localPort);


            f.Start();

            while (true) ;
        }
    }
}
